package org.senf.outerspace.ships.event;

import org.eclipse.core.commands.common.EventManager;

public class ShipEventManager extends EventManager {

	public void addListener(ShipEventListener listener) {
		addListenerObject(listener);
	}
	
	public void removeListener(ShipEventListener listener) {
		removeListenerObject(listener);
	}
	
	public void fire(ShipEvent e) {
		for (Object o: getListeners()) {
			ShipEventListener listener = (ShipEventListener)o;
			listener.handle(e);
		}
	}
}
